package com.edu.base.ums.grade.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.data.annotation.Transient;

import java.math.BigDecimal;

/**
 * 会员等级对象 cls_member_grade
 * 
 * @author lzs
 * @date 2021-07-14
 */
@ApiModel("会员等级对象")
public class ClsMemberGrade extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** $column.columnComment */
    @ApiModelProperty(value = "会员id")
     private String memberId;

    /** 名称 */
    @Excel(name = "名称")
    @ApiModelProperty(value = "名称")
    private String name;

    /** 月 */
    @Excel(name = "月") 
    private Integer memberMonth;

    /** 价格 */
    @ApiModelProperty(value = "原价")
    private BigDecimal originalPrice;

    /** 优惠价格 */
    @ApiModelProperty(value = "现价")
    private BigDecimal discountPrice;

    @ApiModelProperty(value = "价格内容，例如：显示 8/月 原价￥48")
    @Transient
    private  String  priceContent;

    /** 会员等级头像 */
    private String headImg;

    private Long sort;

    private String type;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }


    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setMemberId(String memberId) 
    {
        this.memberId = memberId;
    }

    public String getMemberId() 
    {
        return memberId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setMemberMonth(Integer memberMonth) 
    {
        this.memberMonth = memberMonth;
    }

    public Integer getMemberMonth() 
    {
        return memberMonth;
    }
    public void setOriginalPrice(BigDecimal originalPrice) 
    {
        this.originalPrice = originalPrice;
    }

    public BigDecimal getOriginalPrice() 
    {
        return originalPrice;
    }
    public void setDiscountPrice(BigDecimal discountPrice) 
    {
        this.discountPrice = discountPrice;
    }

    public BigDecimal getDiscountPrice() 
    {
        return discountPrice;
    }
    

    public String getPriceContent() {
		return priceContent;
	}

	public void setPriceContent(String priceContent) {
		this.priceContent = priceContent;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("name", getName())
            .append("memberMonth", getMemberMonth())
            .append("originalPrice", getOriginalPrice())
            .append("discountPrice", getDiscountPrice())
            .toString();
    }
}
